Generate a VISA CVV

Command:

Generate a VISA CVV for encoding on a card.

Notes:

Used to generate Track 1 or Track 2 CVVs.

 

Field

Length & Type

Details

COMMAND MESSAGE

Message header

m A

(Subsequently returned to the Host unchanged).

Command code

2 A

Value CW.

CVK A / B

32H or 1A+32H

VISA CVK A / B encrypted under a variant 4 of LMK pair 14-15.

Primary account number

n N

The primary account number for the card.

Delimiter

1 A

Value “;”.

Expiration date

4 N

The card expiration date.

Service code

3 N

The card service code.

End message delimiter

1 C

Optional. Must be present if a message trailer is present. Value X’19.

Message trailer

n A

Optional. Maximum length 32 characters.

RESPONSE MESSAGE

Message header

m A

Returned to the Host unchanged.

Response code

2 A

Value CX.

Error code

2 N

00 : No errors

10 : CVK A or CVK B parity error

12 : No keys loaded in user storage

13 : LMK error; report to supervisor

15 : Error in input data

21 : Invalid user storage index

27 : CVK not double length

CVV

3 N

CVV to be encoded on card.

End message delimiter

1 C

Present only if present in the command message. Value X’19.

Message trailer

n A

Present only if present in the command message. Maximum length 32 characters.